<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Level_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-level_name" data-rule="required" class="form-control" name="row[level_name]" type="text" value="{$row.level_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Minutes')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-minutes" data-rule="required" class="form-control" name="row[minutes]" type="number" value="{$row.minutes|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Criteria')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-criteria" class="form-control editor" rows="5" name="row[criteria]" cols="50">{$row.criteria|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">轮播:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-carousel_images" data-rule="required" class="form-control" size="50" name="row[carousel_images]" type="text" value="{$row.carousel_images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                <span>
                    <button type="button" id="faupload-carousel_images" class="btn btn-danger faupload"
                            data-input-id="c-carousel_images"
                            data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                            data-multiple="true"
                            data-preview-id="p-carousel_images">
                        <i class="fa fa-upload"></i> {:__('Upload')}
                    </button>
                </span>
                </div>
                <span class="msg-box n-right" for="c-carousel_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-carousel_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">视频:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-video_url" class="form-control" size="50" name="row[video_url]" type="text" value="{$row.video_url|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button" id="faupload-video" class="btn btn-danger faupload"
                                data-input-id="c-video_url"
                                data-mimetype="video/mp4,video/x-m4v,video/*"
                                data-multiple="true"
                                data-preview-id="p-video_url">
                            <i class="fa fa-upload"></i> {:__('Upload')}
                        </button>
                    </span>
                </div>
                <span class="msg-box n-right" for="c-video_url"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-video_url"></ul>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
